<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改页面</title>
    <!--引入layui-->
    <link rel="stylesheet" th:href="@{/assets/lib/layui/css/layui.css}">
    <script th:src="@{/assets/lib/layui/layui.js}"></script>
    <!--自定义格式-->
    <link rel="stylesheet" th:href="@{/assets/sys/admin/edit.css}">
    <script th:src="@{/assets/sys/admin/edit.js}"></script>

    <!--定义上下文路径-->
    <script th:inline="javascript">
        let ctx = /*[[@{/}]]*/"";//上下文路径
        if (ctx.endsWith("/")) {
            ctx = ctx.substring(0, ctx.length - 1);
        }
        const error = /*[[${error}]]*/"";
        const admin =/*[[${admin}]]*/{};
    </script>
</head>
<body>
<form id="edit-form" class="layui-form" lay-filter="edit-form">
    <div class="layui-form-item">
        <label class="layui-form-label width100">管理名</label>
        <div class="layui-input-block">
            <input type="text" name="username" disabled autocomplete="off" class="layui-input width490">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label width100">密码</label>
        <div class="layui-input-block">
            <input type="password" name="password"
                   placeholder="请输入密码,留白表示不修改" autocomplete="off" class="layui-input width490">
        </div>
    </div>

        <div class="layui-form-item">
            <label class="layui-form-label width100">头像</label>
            <div class="layui-input-block">
                <button type="button" class="layui-btn" id="avatar-upload-btn" style="width: 100px;padding: 0 4px">
                     <i class="layui-icon layui-icon-upload" ></i> 图片上传
                 </button>
                <div class="avatar-preview" style="margin-left: 20px"></div>
            </div>
        </div>

    <div class="layui-form-item">
        <label class="layui-form-label width100">锁定状态</label>
        <div class="layui-input-block">
            <input type="radio" name="locked" value="是" title="是" checked>
            <input type="radio" name="locked" value="否" title="否">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label width100">电话</label>
        <div class="layui-input-block">
            <input type="text" name="phone" lay-verify="required|phone" lay-reqtext="电话不可为空"
                   placeholder="请输入电话" autocomplete="off" class="layui-input width490">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label width100" >账号过期时间</label>
        <div class="layui-input-block">
            <input type="text" name="userExpireTime"  lay-verify="datetime"
                   placeholder="选择日期时间" autocomplete="off" class="layui-input width490" readonly>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label width100" >权限过期时间</label>
        <div class="layui-input-block">
            <input type="text" name="credExpireTime"  lay-verify="datetime"
                   placeholder="选择日期时间" autocomplete="off" class="layui-input width490"  readonly>
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label width100">备注</label>
        <div class="layui-input-block">
            <textarea name="description" placeholder="请输入内容" class="layui-textarea width490"></textarea>
        </div>
    </div>
    </div>


</form>

</body>
</html>